Skip to content

feat(skills): add git worktree management skill#295

Open
darrenhinde wants to merge 1 commit intomainfrom
feat/worktree-skill
Open

feat(skills): add git worktree management skill#295
darrenhinde wants to merge 1 commit intomainfrom
feat/worktree-skill

Conversation

@darrenhinde
Copy link
Copy Markdown
Owner

Summary

  • Adds a new worktree skill (.opencode/skills/worktree/) for creating and managing isolated git worktrees as sibling directories
  • Auto-computes unique port ranges per worktree to avoid conflicts when running multiple branches simultaneously
  • Includes .env generation from templates, dependency auto-install, and Zellij session support
  • Provides create, remove, list, and ports commands via router.sh

Test plan

  • Run bash .opencode/skills/worktree/router.sh create test/branch and verify worktree is created as a sibling directory
  • Run bash .opencode/skills/worktree/router.sh list and verify output
  • Run bash .opencode/skills/worktree/router.sh ports and verify port assignments
  • Run bash .opencode/skills/worktree/router.sh remove test-branch and verify cleanup

🤖 Generated with Claude Code

Adds a worktree skill for creating and managing isolated git worktrees
as sibling directories with auto-computed ports, .env generation,
dependency install, and cleanup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant